package com.blb.dao;

import java.sql.SQLException;

import com.blb.pojo.Comment;

import java.util.List;

public interface CommentDao {

    /**
     * 删除
     * @param id
     * @throws SQLException
     */
    void delete(String id) throws SQLException;
    /**
     * 添加评论
     */
    void add(Comment comment) throws SQLException;

    /**
     * 评论列表
     * @return
     * @throws Exception
     */
    List<Comment> list() throws Exception;

    /**
     * 评论总数
     */
    int getCountByCommentId(String id) throws Exception;
}
